import { defaultProps } from "@blocknote/core";
import { createReactBlockSpec } from "@blocknote/react"; 
import "./styles.css";

 const TestBlock = createReactBlockSpec(
    // @ts-ignore
    {
         
         type: "test",
         propSchema:{
            textAlignment: defaultProps.textAlignment,
             textColor: defaultProps.textColor,
             type: {
                default: "text", 
              },
         },
       
         content: "inline",
    },
    // @ts-ignore
    {
         
        render: (props:any) => { 
            console.log("-----------------------------"); 
            console.log(props.block.id  );
            console.log(props.block  );
            console.log("-----------------------------");
            
            
              return (
                <div>
                    123123123
                </div>
              )
        }
    }
)


export default TestBlock;